package cn.dust.design.pattern.structural.proxy;

/**
 * @Author: dust
 * @Date: 2019/11/27 15:06
 */
public class OrderServiceImpl implements IOrderService{

    private IOrderDao iOrderDao;


    @Override
    public int saveOrder(Order order) {
        //spring注入实现
        iOrderDao=new OrderDaoImpl();
        System.out.println("Service层调用Dao层添加Order");
        return iOrderDao.insert(order);
    }
}
